
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>图书</title>
    <link rel="stylesheet" href="css/index.css">
    <script>
        function bian() {

        }
    </script>
</head>
<body>
 <table class="tt">
     <caption>图书信息</caption>
     <tr>
         <th>名称</th>
         <th>价格</th>
         <th>基本操作</th>
         <th>修改</th>
         <c:forEach items="${books}" var="book">
     <tr>
         <td>${book.name}</td>
         <td>${book.price}</td>
         <td><a href="index?id=${book.id}">删除</a></td>
         <td><a href="update?id=${book.id}">修改</a></td>

     </tr>
         </c:forEach>
     </tr>
     <tr>
         <td colspan="10">
             <a href="add">添加</a>
         </td>
     </tr>
     <tr>
         <td colspan="10" >
             <c:forEach begin="1" end="${num}" step="1" var="i">
            <a class="lable" href="index?num=${i}" onclick="bian()" >${i}</a>
             </c:forEach>
         </td>
     </tr>
 </table>
</body>
</html>
